038 counters
大家好,在这个视频中,我们要学习柜台,柜台,拥有三种不同的太平西蒙斯公司。
Hello, in this video, we are going to learn counters, counters, has three different Taiping Simmons p.l.c..
向上反、向下反、上下反。
Conter up, counter down and counter up and down.
好的,让我们从计数器开始。
OK, let's start with the counter up.
我将吃掉我的常开触点和计数器功能块或功能。
I will eat my normally open contact and counter function block or function.
那么这就是我们要使用的功能框CPU,我们将进行计数。
Then this is the function box C.P.U that we are going to use and we will count up.
嗯。
Um.
给它一个这样的名字,好吧,这里是八个输出,这个输出将是零点零。
Give it a name like this, OK, it's eight here output and this output is going to be zero point zero.
好的,那么这个输入将是,例如 25。
OK, and then this input is going to be, for example, 25.
零点零点。
Point zero zero.
好的,然后这是重置输入和二十六个点零,这是我们的重置输入和该计数器的值。
OK, and then this is the reset input and and twenty six point zero, this is our reset input and the value of this counter.
所以我们可以在这里,例如,五,这是我们可以读取的计数器值,好的,W为零,那就是我们要监视轮廓值。
So we can right here, for example, five, and this is the counter value that we can read, OK, and W zero, that is we are going to monitor the contours value.
多少?
How many?
这些国家工作或无法计算的时间,然后让我们启动我们的模拟器。
Times these countries worked or can't be counted and then let us start our simulator.
这是受监控的折扣商,它是否正常工作,他们会上升,现在他们将搜索我们的模拟器,我们的CPU,并且它已获得资助并且正在编译,它将将此项目下载到模拟器,启动所有模块并我会说现在完成我们可以监视并现在修改为一个。
And that is monitored discounter, is it working correctly or not, they will go up OK now they will search our simulator, our CPU, and it's funded and it's compiling and it will do a download this project to the simulator, start all modules and I will say finish now we can monitor and now modify to one.
好的,这个控制器是一,我会再次关闭,而你为零。
OK, this controller is one and I will go off and again and you zero.
好的,现在已经算两次了,我就算三次了。
OK, now two time is counted and I will make it three.
再次修改为1。
Again, modify to one.
零、一、零,最后一次,好吧,算了四次,再次修改为一,现在你可以看到它是五。
And zero and one and zero and the last time, OK, four times it counted and again, modify to one, now you can see it's five.
这就是我们的计数器设定值,现在我们的当前值是五或五加五。
So this is our counter set value and now our present value is five or also five and five.
所以我们有一个输出。
So we have an output.
让我们输入如此高的折扣商并设置情况。
Let's make this input of so still high discounter is and set situation.
所以我将重置这个计数器,现在这些国家重置它。
So I will reset this counter and now these countries reset that.
如果这个复位输入很高,如果你的输入计数器输入变高,那么你看到的仍然是零。
If this reset input is high, if you if your input counter input comes and becomes high, so you see still zero.
所以要注意这一点并照顾好这一点,因为这是非常重要的一点。
So watch out to this and take care of this, because this is really important point.
我会尽力做到这一点,以便您可以在这里使用上升或下降。
And I will make it of so you can use in here one rising or falling.
好的,现在我们该怎么办?
OK, and now what will we do?
我们将进行倒计时。
We will look to count down.
和。
And.
三十分零,好吧,了。
Thirty point zero, OK, the.
这是我们的最后一次。
And this is our last one.
那么我们该怎么办呢?
So what will we do?
我们将着眼于这个国家的价值。
We will look at a value to this country.
那么我们该如何使用它呢?
So how can we use it?
例如,我们可以在此处添加一个 Boulle 输入。
For example, we can add here a one Boulle input.
好的,我们将像这样使用 Boulin 并设置折扣的现值或设定值。
OK, we will use Boulin like this and present value or set value for discount.
让我们把它变成三个吧。
Let's make it three.
好的,还有瞄准机器人。
OK, and aimbot.
一。
One.
在零的某个时刻,像这样想象,然后让我们将其发送给我的注册会计师或我的模拟器,主啊,这个程序。
And at one point zero, imagine like this and then let's send it to my CPA or my simulator and Lord, this program.
所以现在该值为零。
So now the value is zero.
所以我们立即就有了输出。
So we have an output immediately.
我们会怎样做?
What will we do?
我们必须通过该计数器查看该值。
We must look this value to this counter.
我会先打开再关闭。
I will make it on firstly and off.
所以发生了什么事?
So what happened?
现在我们的控制是三,还没有输出。
Our control is three now and we have not output.
现在我将激活此输入,现在它是两个并修改为零,然后再次修改二、一和零。
And now I will activate this input is now it's two and modify to zero and again modify two, one and zero.
还有一件事。
And one more thing.
再次修改为 1,现在您可以看到它为零。
Again, modify to one and now you can see it's zero.
这样我们就有了输出,所以它又可以工作了。
So we have an output, so it's working again.
我会把它归零。
I will make it zero.
如果我激活很多并且这个被加载到这个计数器并且没有输出并且在三次拉动之后,该输出将再次变高。
And if I activate a lot and this one is loaded to this counter and there is no output and after three pulls, this output will be high again.
最后一个是上下计数器。
And the last thing counter up and down.
好,我们继续向上和向下计数器。
OK, let's continue counter up and down.
还有一件事。
One more thing.
让我们给他们二十二分零。
Let's give em twenty two point zero.
好的,再见,这是我们的上下计数器。
OK, and see you the this is our counter up and down counter.
现在您将在这里看到两个不同的操作数,倒计时输入,倒计时输入将是三十二点零,重置输入和三十四点零以及批次输入,例如四十点零。
And now you will see two different operand in here, countdown input, countdown input is going to be thirty two point zero and the reset input and thirty four point zero and the lot input and for example, forty point zero.
但我们忘了把它们放好。
But we forgot to put em OK.
以及该计数器的当前值或设定值。
And the present value or set value for this counter.
让我们再给它三个。
Let's give it three again.
现在这是计数输出,所以我们可以在这里说一点一,例如,我们可以在这里说一点二到这里和这里,我们也可以向内看一下。
And now this is count up output, so we can say to here to one point one, for example, and we can put here one point two to here and here, we can take a look inward, too.
现在我将把它发送到我的模拟器上再次见到你。
And now I will send it to see you again to my simulator.
现在它已经加载了。
And now it's loaded.
让我们现在开始吧。
And let's start now.
我们的输出是正确的。
Our output is true.
为什么?
Why?
因为计数器值始终为真。
Because the counter value is continually is true.
因为为什么?
Because of why?
因为现在该值还没有加载到该计数器中。
Because now the value is not loaded to this counter.
那么我们该怎么办呢?
So what will we do?
让我们加载它。
Let's load it.
我会坚持下去的,好吧。
I will make it on, OK.
现在这是错误的,这是一个输出。
Now this is false and this is an output.
所以现在这个国家的价值是三,我会完成它,我们会数到。
So the value inside of this country is three now and I will make it off and we will count to up.
好的,如果我激活这个一对一,那就是三个。
OK, it's three if I activate this one to one.
所以你可以看到它是四个。
So you can see it's four.
但我们有一个输出。
But we have an output.
一分一还是很高的。
One point one is still high.
我去把这个关掉。
I will go make this off.
好的,现在我们开始倒计时。
OK, now we will go count down.
我会把它变成三和。
I will make it three and.
确实,我很抱歉,是的,也是。
And true, I'm sorry, yes, too.
还有一又一。
And one more and one.
所以现在要小心。
So watch out now.
没有输出。
There is no output.
Q一点一和Q一点二是假的或关闭的。
Q One point one and Q One point two is false or off.
现在,如果我真的做到了,那就再来一个。
Now, if I make it true, one more.
再说一遍,你可以看到我们往下走,倒计时或倒计时,输出现在被激活,我会成功的。
Again, so you can see we go down and did count down or down, output is activated now and now, I will make it off.
如果我再说一遍,主啊,这个卷你可以看到这是错误的,这是 kountouris 输出的输出。
And if I say again, Lord, this volume so you can see this is false and this is output up kountouris output.
这就是国家上下再次运转的方式。
So this is how up and down country is working again down.
好的。
Okay.
并通过和。
And through and.
错误的。
False.
再说一遍,真与假。
And again, true and false.
仍然很高,所以我们需要做什么,我们需要制作它,重置它,好吗?
Still high, so what we need to do, we need to make it, reset it, OK?
现在该值为零。
And now the value is zero.
如此,再次修改两个一与。
So again, modify two one and.
零。
Zero.
但这仍然是事实。
But still, this is true.
我想让它顺利,我想让它也顺利。
I want to make it off OK, I want to make it also OK.
主啊,我也想成功。
And the Lord is I want to make it off also.
好的,正确。
OK, correctly.
现在我想把它变成一个。
And now I want to make it one.
所以向上是四,我想将其重置为零。
So up it is four and I want to reset it to zero zero.
好的,还有一件事。
OK, and one more thing.
我还想再上去。
I want to go up again.
零修改为一,就是一和。
Zero modify to one and it's one and.
再说一遍,我想把它归零。
Again, I want to make it to zero.
再说一次,还有一件事,现在三十二点零是高的。
And again, one more thing for this, and thirty two point zero is high and now.
零。
Zero.
好的,控制是如果我激活这个计数器,这将是三,并且向上输出将被激活。
OK, the control is to if I activate this counter up, this will be three and up output will be active.
如果我以三十三点零落下,那么我就达到零。
If I go down with thirty three point zero, then I reach to zero.
因此,倒计时或一分二将被激活。
So count down or one point two is going to be active.
这是西蒙斯的计数器,它有七千二百个脉冲进入门户。
So this is the this is the counters for the Simmons, it's seven one thousand two hundred pulses into a portal.
我已经完成这个视频了。
I am finished for this video.
下一个视频见。
See you in the next video.